home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / ImageWriter--custom dialogs / ImageWriter.make < prev    next >
Encoding:
Text File  |  1996-06-15  |  5.2 KB  |  169 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        ImageWriter.make
  3. #
  4. #    Contains:    Makefile for the sample ImageWriter II driver.
  5. #
  6. #    Copyright:    © 1983-1996 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #    Change History (most recent first):
  9. #
  10. #                 6/14/96    cn        Updated to support MPW Pro #19.
  11. #                12/22/93    dmh        Added custom dialog code.
  12. #                 9/12/93    dmh        Modified for b2 seed.
  13. #                 4/26/93    dmh        Modified for b1 seed.
  14. #                 2/04/93    dmh        Modified for a5 seed.
  15. #         <5>    10/22/92    DB        Added changes for version control
  16. #
  17. #
  18.  
  19. #======= Point these variables to your interface and library directories =======
  20.  
  21. GXLibrariesSources            =    {MPW}GXLibraries:
  22. GXCompatibilityInterfaces    =    {MPW}GX Compatibility Interfaces:
  23.  
  24.  
  25. #========== Directories Containing Source and Object Files ==========
  26.  
  27. ObjDir                    =    :Objects:
  28. SrcDir                    =    
  29. DestDir                    =    
  30.  
  31.  
  32. #========== Compiler Options ==========
  33.  
  34. AsmOptions                =    -case obj
  35. RezOptions                =    -d SystemSevenOrLater=1 -i "{Rincludes}"
  36. COptions                =    -d applec -b2 -i "{CIncludes}" -i "{GXLibrariesSources}" -i "{GXCompatibilityInterfaces}"
  37. LinkOptions                =    -ra =resSysHeap,resPurgeable
  38.  
  39. DriverName         = ImageWriter
  40. DriverType         = 'pdvr'
  41. DriverCreator     = 'IWcd'
  42. NewSegID        = 0
  43. OldSegID        = 1
  44.  
  45. # Compile and assemble statements
  46. "{ObjDir}"OldApp.c.o ƒƒ "{SrcDir}"OldApp.c
  47.     SC {COptions} -o "{ObjDir}" "{SrcDir}"OldApp.c
  48.  
  49. "{ObjDir}"OldApp.a.o    ƒ     "{SrcDir}"OldApp.a
  50.     Asm {AsmOptions} {MakeJumpTable} "{SrcDir}"OldApp.a -o "{ObjDir}"
  51.  
  52. "{ObjDir}"NewApp.c.o    ƒ "{SrcDir}"NewApp.c
  53.     SC {COptions} -o "{ObjDir}" "{SrcDir}"NewApp.c
  54.  
  55. "{ObjDir}"NewApp.a.o    ƒ     "{SrcDir}"NewApp.a
  56.     Asm {AsmOptions} {MakeJumpTable} "{SrcDir}"NewApp.a -o "{ObjDir}"
  57.  
  58. "{ObjDir}"CommonCode.c.o    ƒ     "{SrcDir}"CommonCode.c
  59.     SC {COptions} -o "{ObjDir}" "{SrcDir}"CommonCode.c
  60.  
  61. "{ObjDir}"ChooserSupport.c.o    ƒ "{SrcDir}"ChooserSupport.c
  62.     SC {COptions} -o "{ObjDir}" "{SrcDir}"ChooserSupport.c
  63.  
  64. "{ObjDir}"ChooserSupport.a.o    ƒ     "{SrcDir}"ChooserSupport.a
  65.     Asm {AsmOptions} {MakeJumpTable} "{SrcDir}"ChooserSupport.a -o "{ObjDir}"
  66.  
  67. # Link and Rez statements
  68. "{DestDir}{DriverName}" ƒƒ "{SrcDir}"OldApp.r
  69.     Rez {RezOptions} -append -o "{DestDir}{DriverName}" "{SrcDir}"OldApp.r
  70.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  71.         
  72. "{DestDir}{DriverName}" ƒƒ "{ObjDir}"OldApp.c.o
  73.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  74.  
  75. "{ObjDir}TextLibrary.c.o"        ƒ "{GXLibrariesSources}"TextLibrary.c
  76.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}"TextLibrary.c
  77.  
  78. "{ObjDir}PictureLibrary.c.o"        ƒ "{GXLibrariesSources}"PictureLibrary.c
  79.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}"PictureLibrary.c
  80.  
  81. "{ObjDir}FontLibrary.c.o"        ƒ "{GXLibrariesSources}"FontLibrary.c
  82.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}"FontLibrary.c
  83.  
  84. "{ObjDir}ColorLibrary.c.o"        ƒ "{GXLibrariesSources}"ColorLibrary.c
  85.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}"ColorLibrary.c
  86.  
  87. "{ObjDir}GraphicsLibrary.c.o"        ƒ "{GXLibrariesSources}"GraphicsLibrary.c
  88.     SC {COptions} -o "{ObjDir}" "{GXLibrariesSources}"GraphicsLibrary.c
  89.  
  90. "{DestDir}{DriverName}" ƒƒ "{SrcDir}"NewApp.r
  91.     Rez {RezOptions} -append -o "{DestDir}{DriverName}" "{SrcDir}"NewApp.r
  92.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  93.  
  94. "{DestDir}{DriverName}" ƒƒ                         ∂
  95.     "{ObjDir}"NewApp.a.o                            ∂
  96.     "{ObjDir}"NewApp.c.o                            ∂
  97.     "{ObjDir}TextLibrary.c.o"                    ∂
  98.     "{ObjDir}PictureLibrary.c.o"                ∂
  99.     "{ObjDir}FontLibrary.c.o"                    ∂
  100.     "{ObjDir}ColorLibrary.c.o"                    ∂
  101.     "{ObjDir}GraphicsLibrary.c.o"                ∂
  102.     "{ObjDir}"CommonCode.c.o
  103.     Link                                        ∂
  104.         "{ObjDir}"NewApp.a.o                        ∂
  105.         "{ObjDir}"NewApp.c.o                        ∂
  106.         "{ObjDir}"CommonCode.c.o                    ∂
  107.         ∂
  108.         "{ObjDir}TextLibrary.c.o"                ∂
  109.         "{ObjDir}PictureLibrary.c.o"            ∂
  110.         "{ObjDir}FontLibrary.c.o"                ∂
  111.         "{ObjDir}ColorLibrary.c.o"                ∂
  112.         "{ObjDir}GraphicsLibrary.c.o"            ∂
  113.         ∂
  114.         "{Libraries}Interface.o"                 ∂
  115.         "{Libraries}MacRuntime.o"                     ∂
  116.         -msg nodup                                 ∂
  117.         ∂
  118.         {LinkOptions}                            ∂
  119.         -rt {DriverType}={NewSegID}                ∂
  120.         -c {DriverCreator}                        ∂
  121.         -t {DriverType}                            ∂
  122.         -sg {DriverName}                        ∂
  123.         -m SD_JumpTable                            ∂
  124.         ∂
  125.         -o "{DestDir}{DriverName}"
  126.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  127.  
  128. "{DestDir}{DriverName}" ƒƒ                         ∂
  129.     "{ObjDir}"OldApp.a.o                            ∂
  130.     "{ObjDir}"OldApp.c.o                            ∂
  131.     "{ObjDir}"CommonCode.c.o
  132.     Link                                        ∂
  133.         "{ObjDir}"OldApp.a.o                        ∂
  134.         "{ObjDir}"OldApp.c.o                        ∂
  135.         "{ObjDir}"CommonCode.c.o                    ∂
  136.         ∂
  137.         "{Libraries}Interface.o"                 ∂
  138.         "{Libraries}MacRuntime.o"                     ∂
  139.         ∂
  140.         {LinkOptions}                            ∂
  141.         -rt {DriverType}={OldSegID}                ∂
  142.         -c {DriverCreator}                        ∂
  143.         -t {DriverType}                            ∂
  144.         -sg {DriverName}                        ∂
  145.         -m SD_JumpTable                            ∂
  146.         ∂
  147.         -o "{DestDir}{DriverName}"
  148.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  149.  
  150. "{DestDir}{DriverName}" ƒƒ "{SrcDir}"ChooserSupport.r
  151.     Rez {RezOptions} -append -o "{DestDir}{DriverName}" "{SrcDir}"ChooserSupport.r
  152.     SetFile -a Bi -t {DriverType} -c {DriverCreator} "{DestDir}{DriverName}"
  153.  
  154. "{DestDir}{DriverName}" ƒƒ                         ∂
  155.     "{ObjDir}"ChooserSupport.a.o                    ∂
  156.     "{ObjDir}"ChooserSupport.c.o
  157.     Link                                        ∂
  158.         "{ObjDir}"ChooserSupport.a.o                ∂
  159.         "{ObjDir}"ChooserSupport.c.o                ∂
  160.         ∂
  161.         -rt PACK=-4096                            ∂
  162.         -sg PrintingPACK                        ∂
  163.         -m EntryPoint                            ∂
  164.         ∂
  165.         -o {Targ}
  166.  
  167. "{DestDir}{DriverName}"    ƒƒ "{ObjDir}"ChooserSupport.c.o
  168.     Link -w -rt LDEF=-4096 -m LDEF -sg LDEF -o {Targ} "{ObjDir}"ChooserSupport.c.o
  169.